package com.thb.pay.api.merchant.fallback;

import com.thb.pay.api.merchant.MchAccountServiceApi;
import com.thb.pay.api.merchant.vo.req.MchAccountPageReq;
import com.thb.pay.api.merchant.vo.req.MchAccountReq;
import com.thb.pay.api.merchant.vo.resp.MchAccountVo;
import com.thb.pay.core.utils.PageResult;
import feign.hystrix.FallbackFactory;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class MchAccountServiceApiFallbackFactory implements FallbackFactory<MchAccountServiceApi> {


    @Override
    public MchAccountServiceApi create(Throwable throwable) {
        return new MchAccountServiceApi() {
            @Override
            public PageResult<MchAccountVo> findPage(MchAccountPageReq pageReq) {
                return null;
            }

            @Override
            public MchAccountVo getById(Long id) {
                return null;
            }

            @Override
            public void add(MchAccountReq mchAccountReq) {

            }

            @Override
            public void update(MchAccountReq mchAccountReq) {

            }
        };
    }
}